home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
dev
/
lang
/
Python151_Src.lha
/
Python1.5_Source
/
Embed
/
Readme.txt
next >
Wrap
Text File
|
1999-04-05
|
948b
|
41 lines
Embedding Python in your own programs
-------------------------------------
This directory shows how to embed the Python interpreter in your own
application. The file test.c shows you all that is needed in your C code.
To compile it, you'll have to assign PythonSrc: to where your Python
source tree is.
See the test.c code and the SMAKEFILE for details.
Overview of the Python object/library files you must link with:
Modules/getbuildinfo.o
Modules/Modules.lib
Parser/Parser.lib
Python/Python.lib
Objects/Objects.lib
Amiga/amigapythonamitcp.lib
lib:scm881.lib
lib:sc.lib
(in this order).
SCOPTIONS are identical to the SCOPTIONS in the Python source tree, except
for the path to the GST and the Include/ directory.
You can override Python's $VER version string by declaring one of your own.
See the code.
Problem: The only problem I'm aware of is that the resulting executable is
400K+ minimum...
Irmen de Jong
irmen@bigfoot.com